@layout("/common/default.html",{title:'日志管理'}){

<!--数据表格-->
<table class="layui-table" id="tableId" lay-filter="tableFilter" ></table>


<script>

    layui.use(['table','form','feng'], function () {

        var table = layui.table,
            form = layui.form,
            feng = layui.feng;


        var tableData = table.render({
            elem: "#tableId",
            url: "/sys/log/dataList",
            page: true,
            limit: 13,
            height: 'full-220',
            cols: [[
                 {title: '序号',type: 'numbers', fixed: 'left'},
                {field: 'title', title: '操作模块'},
                 {field: 'type', title: '日志类型',templet: function (d) {
                         return feng.getDictLabel('${fnc.getDictListJson("sys_log_type")}', d.type)
                     }},
                 {field: 'remoteAddr', title: 'IP地址'},
                 {field: 'requestUri', title: 'URI'},
                 {field: 'method', title: '操作方式'},
                 {field: 'userAgent', title: '操作用户'},
                 {field: 'createDate', title: '日志时间', sort: true}
    ]],
        done: function (res, curr, count) {
        }
    });


        //监听搜索
        form.on("submit(search)", function (data) {
            var  field=data.field;
            tableData.reload({
                where: field,
            });
            return false;
        });


    })

</script>


@}
